<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>表格练习</title>
    <!-- import CSS -->
    <link rel="stylesheet" href="https://cdn.staticfile.org/element-ui/2.15.9/theme-chalk/index.css">
    <!-- import Vue before Element -->
    <script src="https://cdn.staticfile.org/vue/2.6.14/vue.min.js"></script>
    <!-- import JavaScript -->
    <script src="https://cdn.staticfile.org/element-ui/2.15.9/index.min.js"></script>
</head>
<body>
<div id="app">
    <h1 style="text-align: center">员工列表</h1>
    <el-table :data="arr" style="width :800px">
        <el-table-column prop="name" width="200" label="名字"></el-table-column>
        <el-table-column prop="salary" width="200" label="工资"></el-table-column>
        <el-table-column prop="job" width="200" label="职位"></el-table-column>
    </el-table>
</div>
</body>
<script>
    let v = new Vue({
        el: '#app',
        data: function () {
            return {
                arr:[
                    {name:"张三",salary:5000,job:"销售"},
                    {name:"李四",salary: 4000,job:"人事"},
                    {name:"王五",salary: 7000,job:"程序员"}
                ]
            }
        },
        methods:{

        }
    })
</script>
</html>